<template>
  <div class="dist_list">
    <div class="dist_item">
      <el-checkbox
        class="check_box"
        :value="value.checkedImplement"
        @input="$emit('input', { ...value, checkedImplement: $event })"
        >执行组</el-checkbox
      >
      <el-input
        :disabled="!value.checkedImplement"
        :value="value.execGroup"
        @input="$emit('input', { ...value, execGroup: $event })"
        size="small"
      ></el-input>
    </div>
    <div class="dist_item">
      <el-checkbox
        class="check_box"
        :value="value.checkedParallel"
        @input="$emit('input', { ...value, checkedParallel: $event })"
        >平行数</el-checkbox
      >
      <el-input
        :disabled="!value.checkedParallel"
        :value="value.parallel"
        @input="$emit('input', { ...value, parallel: $event })"
        size="small"
      ></el-input>
    </div>
  </div>
</template>

<script>
export default {
  props: ["value"],
  data() {
    return {};
  },
  methods: {},
  mounted() {},
};
</script>

<style lang='scss' scoped>
.dist_list {
  display: flex;
  align-items: center;
  padding: 10px;
  background: rgba(233, 233, 233, 0.3);
  margin-top: 26px;
  justify-content: space-between;
  .dist_item {
    width: 100%;
    display: flex;
    flex-direction: column;
    &:first-child {
      margin-right: 10px;
    }
    .check_box {
      margin-bottom: 10px;
    }
  }
}
</style>